package com.xining.official.modules.system.service.impl;

import com.xining.official.core.dto.UserDto;
import com.xining.official.modules.security.service.dto.AuthorityDto;
import com.xining.official.modules.system.service.RoleService;
import lombok.RequiredArgsConstructor;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
@CacheConfig(cacheNames = "role")
public class RoleServiceImpl implements RoleService {

    @Override
    public List<AuthorityDto> mapToGrantedAuthorities(UserDto user) {
        return List.of();
    }
}
